﻿using SportsPlatform.Dto.PermissionManagement.RoleFunction;
using SportsPlatform.Base;
using SportsPlatform.Query.PermissionManagement.BaseQuery;
using SportsPlatform.Query.PermissionManagement.RoleFunction;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace SportsPlatform.PermissionManagement.IPermissionManagement
{
    /// <summary>
    /// 角色功能对应表
    /// </summary>
    public  interface IRoleFunctionService
    {
        /// <summary>
        /// 获取功能菜单，只能获取自己已有的权限菜单
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        Task<PagePagingDto<GetRoleFunctionDto>> GetRoleFunctionList(GetRoleFunctionQuery query);

        /// <summary>
        ///  获取树型功能菜单，只能获取自己已有的权限树型菜单
        /// </summary>
        /// <returns></returns>
        Task<ResultListDto<GetRoleFunctionTreeListDto>> GetRoleFunctionTreeList(GetRoleFunctionTreeListQuery query);

        /// <summary>
        /// 新增或者更新
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        Task<BaseResultDto> AddOrUpdateRoleFunction(AddOrUpdateRoleFunctionQuery query);

        /// <summary>
        /// 获取功能菜单编号
        /// </summary>
        /// <returns></returns>
        Task<ResultListDto<GetFunctionNumberDto>> GetFunctionNumberList();
    }
}
